improvement(ui): reuse Button treatments for canvas actions - #8155
Merged
BillLeoutsakosvl346 merged 1 commit intoSep 24, 2026
Merged
BillLeoutsakosvl346 merged 1 commit into
BillLeoutsakosvl346 merged 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Author
Contributor
|
BillLeoutsakosvl346
merged commit Sep 24, 2026
5a86de2
into
codex/control-fix-canvas-controls
11 checks passed
BillLeoutsakosvl346
added a commit
that referenced
this pull request
Sep 24, 2026
* improvement(emcn): share ordinary action geometry in Button * improvement(ui): share canvas toolbar controls * improvement(ui): reuse Button treatments for canvas actions (#8155) Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local> * fix(ui): preserve canvas action hover treatment * fix(ui): retain muted canvas icon and import conventions * refactor(emcn): keep Button hover variant self-contained --------- Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Canvas navigation actions now use Button's regular geometry and existing active/quiet treatments instead of local size, radius, padding and hover classes. The mode chevron uses the existing 20px icon treatment. Pan/zoom, mode selection, undo/redo, tooltips and refs are unchanged.
Intentional appearance differences: ordinary corners follow Button's 5px radius instead of 4px; inactive hover uses the shared neutral fill. The 20px chevron uses the shared muted icon color and 1.25 stroke. At default text size, ordinary actions remain 28px and the toolbar remains 36px. With 20px root text, the toolbar grows to 45px around 35px actions.
Validation: workspace type checks, lint, import/API audits and the full EMCN suite pass. Both design linters ran against the actual target; the full scanner removes all eight targeted overrides without adding findings. Before/after light/dark, selected/disabled, hover, keyboard activation, narrow and enlarged-text screenshots use the actual action wrapper with local state; mode-chevron/layout examples use equivalent consumer JSX. The authenticated workflow canvas and pan/zoom stores were not exercised. Review images are posted in a separate comment; artifacts and linters are outside this PR.